﻿@model MvcRedovalnica.Models.LoginModel

@{
    ViewBag.Title = "Login";
}

<h2>Login</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>

@using(Html.BeginForm())
{
    @Html.LabelFor(m => m.username)
    @Html.TextBoxFor(m => m.username)
    @Html.LabelFor(m => m.password)
    @Html.PasswordFor(m => m.password)

    <input type="submit" />
    @Html.ValidationSummary() //validacija z jquery na strani klienta
}